/*#include<stdio.h>
# define M 10
struct student{
	long xh;
	int cj;
};
int fun(struct student *s,int low,int high,struct student *b)
{
	int y=0;
	struct student *p=s;
	struct student *q=b;
	for(p=s;p<s+M;p++)
	{
		if(p->cj>low&&p->cj<high)
		{
			q->xh=p->xh;
			q->cj=p->cj;
			q++;
			y++;
		}
	}
	return y;
}
int main()
{
	struct student a[M];
	struct student b[M];
	int x,y,i,j;
	for(x=0;x<M;x++)
	{
		scanf("%ld",&a[x].xh);
		scanf("%d",&a[x].cj);
	}
	scanf("%d%d",&i,&j);
	y=fun(a,i,j,b);
	for(x=0;x<y;x++)
	{
		printf("%ld,%d",b[x].xh,b[x].cj );
	}
	return 0;
}*/

